/*
 * Created on Jan 8, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.vectrics.recruiter.job;

import java.util.Comparator;

/**
 * @author MMoore
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class JobStatusDateComparator implements Comparator {

	/**
	 * 
	 */
	public JobStatusDateComparator() {
		super();
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
	 */
	public int compare(Object o1, Object o2) {
		JobStatus status1 = (JobStatus)o1;
		JobStatus status2 = (JobStatus)o2;
		
		return (status1.getDateStart().compareTo(status2.getDateStart()));
	}

}
